package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * PROJECT_NAME: teamwork-health-system
 * NAME: MenberDao
 *
 * @AUTHOR: YAN6D0N6SH3N6
 * DATETIME: 2023/6/6 19:28
 * DESCRIPTION : 会员信息持久层接口
 */
@Mapper
public interface MenberDao {
    /**
     * 根据会员手机号获取会员信息
     *
     * @param member 会员电话
     * @return {@link Member}
     */
    Member getMenber(@Param("member") Member member);

    /**
     * 添加会员
     *
     * @param member 会员信息
     */
    void insertMenber(@Param("member") Member member);
}
